﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JzSport.Model.Strategies
{
    public static class ResolveInviteMessageStrategy
    {
        /// <summary>
        /// 解决掉没有意义的活动邀请
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="userId"></param>
        /// <param name="activityId"></param>
        public static void Resolve(JzSportDbContext dbContext, int userId, Guid activityId)
        {
            // 如果有邀请消息夹，删除邀请消息夹
            new MessageService().DeleteMessageClip(dbContext, BasicData.MessageClipType.SystemNotice, string.Format("ACT_INVITE{0}-{1}", activityId, userId));
        }
    }
}
